package com.zhijiang.hospital.entrty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@ApiModel(value = "医院短信")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class HospitalSmsDto implements Serializable {

    private static final long serialVersionUID = 5431453640102229847L;



    @ApiModelProperty(value = "")
    private Integer type;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "短信内容")
    private String content;

    @ApiModelProperty(value = "会议码")
    private String code;

    @ApiModelProperty("姓名")
    private String patientName;

    public HospitalSmsDto(Long hospitalId, String phone, String content) {

        this.phone = phone;
        this.content = content;
    }
}
